
import productItemTpl from '../views/index/product_list.html';
import Http from '../model/http'
import http from '../model/http';

class ProductList {
          constructor(){
                    this.render();
          }
       async render(){
         //   Http.get();
           let list = (await Http.product()).promoList;

              let html = template.render(productItemTpl,{
            list
         })
          
           document.querySelector('#productItem').innerHTML = html;
        }
}



export default ProductList ;